﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DiffScrollEventArgs.cs" company="SmartPlan">
//   SmartPlan 2011
// </copyright>
// <summary>
//   Defines the DiffScrollEventArgs type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DiffControl
{
    using System.Windows.Forms;

    /// <summary>
    /// The diff scroll event args.
    /// </summary>
    public class DiffScrollEventArgs : ScrollEventArgs
    {
        /// <summary>
        /// The diff side.
        /// </summary>
        private readonly DiffSide diffSide;

        /// <summary>
        /// Initializes a new instance of the <see cref="DiffScrollEventArgs"/> class.
        /// </summary>
        /// <param name="scrollEventType">
        /// The scroll event type.
        /// </param>
        /// <param name="newValue">
        /// The new value.
        /// </param>
        /// <param name="diffSide">
        /// The diff side.
        /// </param>
        public DiffScrollEventArgs(ScrollEventType scrollEventType, int newValue, DiffSide diffSide) : base(scrollEventType, newValue)
        {
            this.diffSide = diffSide;
        }

        /// <summary>
        /// Gets DiffSide.
        /// </summary>
        public DiffSide DiffSide
        {
            get
            {
                return this.diffSide;
            }
        }
    }
}

